using Algorithms.Sequences;

namespace Algorithms.Tests.Sequences;

public class SquaresSequenceTests
{
    [Test]
    public void First10ElementsCorrect()
    {
        var sequence = new SquaresSequence().Sequence.Take(10);
        BigInteger[] expected = [0, 1, 4, 9, 16, 25, 36, 49, 64, 81];
        sequence.SequenceEqual(expected)
            .Should().BeTrue();
    }
}
